<?php
include_once("module/company/includes/company_class.php");
$user=new user();
//============================================================
if(!empty($_POST['Submit']))
{	
	$re=$user->update_user();
	if($_SESSION["IFPAY"]<2)
		$admin->msg("main.php?menu=$_GET[menu]&action=active");
	else
		$admin->msg("main.php?action=m&m=company&s=cominfo&type=1&menu=user");
}
@include_once($config['webroot'].'/config/module_company_config.php');
$config = array_merge($config,$module_company_config);
$companyType=explode('|',$config['companyType']);

if($config['identity'])
{
	$identity=explode('|',$config['identity']);
	$tpl->assign("identity",$identity);
}

$tpl->assign("companyType",$companyType);
$tpl->assign("de",$de=$user->get_user_detail($buid));
$tpl->assign("com_cat",$admin->getComCat());
$tpl->assign("prov",get_province($de['province']));

//==================================
$tpl->assign("country",country_list());
$tpl->assign("config",$config);
$tpl->assign("lang",$lang);
$output=tplfetch("admin_myshop.htm");
?>